package com.lyfx.ly.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lyfx.common.utils.PageUtils;
import com.lyfx.common.utils.Query;

import com.lyfx.ly.dao.StudyStepReadContentDao;
import com.lyfx.ly.entity.StudyStepReadContentEntity;
import com.lyfx.ly.service.StudyStepReadContentService;


@Service("studyStepReadContentService")
public class StudyStepReadContentServiceImpl extends ServiceImpl<StudyStepReadContentDao, StudyStepReadContentEntity> implements StudyStepReadContentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<StudyStepReadContentEntity> page = this.page(
                new Query<StudyStepReadContentEntity>().getPage(params),
                new QueryWrapper<StudyStepReadContentEntity>()
        );

        return new PageUtils(page);
    }

}